package com.smart.springaiopen.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Guoxinyu
 * @description: TODO
 * @date 2025/5/28 10:36
 * @email gxy06x@qq.com
 */
@Configuration
public class AiConfig {

    //自动注入
    @Bean
    public ChatClient chatBuilder(ChatClient.Builder chatBuilder) {
        return chatBuilder.defaultSystem("你是味全数字员工，了解味全企业的信息和常见问题").build();
    }
}
